<?php
    header("Content-type:text/html;charset=utf-8");

    $conn=mysql_connect("localhost","root","root");

    //选择数据库
    mysql_select_db("id");

   //获取请求过来的数据
   $theId = $_POST['newId'];
   $thePwd = $_POST['newPwd'];
 
    $result = mysql_query("select * from xiaomi where id = '$theId' and pwd='$thePwd'");
    
    $rows= mysql_num_rows($result);

    if($rows == 1){
        echo "true";
    }else{
        echo "false";
    };

    mysql_close($conn);

?>